<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!doctype html>
<html>
	<jsp:include page="title.jsp"></jsp:include>
	<head>
		<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" media="screen" />
		<script type="text/javascript" src="js/base/jquery.js"></script>
		<script type="text/javascript" src="js/plugins/jquery.cookie.js"></script>
		<script type="text/javascript" src="js/plugins/jqModal.js"></script>
		<script type="text/javascript" src="js/plugins/jqDnR.js"></script>
		<script type="text/javascript"
			src="js/powerFloat/js/jquery-powerFloat.js"></script>
		<script type="text/javascript" src="js/main.js"></script>
		<script type="text/javascript" src="js/roleManager.js"></script>
	</head>
	<body>
		<jsp:include page="head.jsp"></jsp:include>
		<div class="zhuti">
			<div class="jingediv"></div>
			<div class="lefterdiv">
				<jsp:include page="menu.jsp"></jsp:include>
			</div>
			<div class="jingediv"></div>
			<div class="righterdiv" id="right">
				<div class="widthall">
					<div class="whitediv font16">
						<div class="floatleft div25 defaultheight"></div>	
						<div class="floatleft yxcontent">
							<form action="roleAddSub" method="post" id="myForm">
							<div class="widthall em30"></div>
							<div class="widthall em20 font20">角色新增</div>
							<div class="widthall em30"></div>
							<div class="widthall em30">
								<div class="floatleft heigthall qdliubairight">
									<div class="mmjuzhong">父级角色</div>
								</div>
								<div class="floatleft heigthall cpwdjg100"></div>
								<div class="floatleft heigthall cpwdjg270">
									<select name="roleInfo.parentId" class="inputtext" style="width:105%">
										<c:forEach items="${roleList}" var="treeHtml">
											<option value="${treeHtml.id}">
												${treeHtml.roleName}
											</option>
										</c:forEach>
									</select>
								</div>
							</div>
							<div class="widthall em10"></div>
							<div class="widthall em30">
								<div class="floatleft heigthall qdliubairight">
									<div class="mmjuzhong">角色名称</div>
								</div>
								<div class="floatleft heigthall cpwdjg100"></div>
								<div class="floatleft heigthall cpwdjg270">
									<input name="roleInfo.roleName" maxlength="256" type="text" id="txtNewRoleName"
											class="inputtext" />
								</div>
							</div>
							<div class="widthall em10"></div>
							<div class="widthall em90">
								<div class="floatleft heigthall qdliubairight">
									<div class="mmjuzhong">角色描述</div>
								</div>
								<div class="floatleft heigthall cpwdjg100"></div>
								<div class="floatleft heigthall cpwdjg270">
									<textarea name="roleInfo.description" id="RoleDescription" onKeyDown="if (this.value.length>=256){if(event.keyCode != 8 && event.keyCode != 127)event.returnValue=false;}"
									class="inputarea lineh30"></textarea>
								</div>
							</div>
							<div class="widthall em25"></div>
							<div class="widthall em50">
								<div class="floatleft heigthall" style="width:32.7%">
									<div class="floatright heigthall">
									<input type="button" class="btn" value="取消" onclick="location.href='roleManager'"/> 
									<input type="button" class="btn" value="确定" onclick="saveRole();"/>
									</div>
								</div>
							</div>
							<div class="widthall em30"></div>
							</form>
						</div>
						<div class="floatleft div25 defaultheight"></div>	
						<div class="cleardiv"></div>
					</div>
				</div>
			
				
			</div>
			<div class="cleardiv">
			</div>
		</div>
		<jsp:include page="footer.jsp"></jsp:include>
	</body>
</html>
